package com.imooc.mymall.service;

import java.io.File;
import java.io.InputStream;

/**
 * <h1>文件上传服务接口</h1>
 * @Author: crowsjian
 * @Date: 2020/7/16 21:43
 */
public interface FileService {

    /**
     * <h2>文件上传</h2>
     * @param inputStream
     * @param filename
     */
    void upload(InputStream inputStream,String filename);

    /**
     * <h2>文件上传</h2>
     * @param file
     */
    void upload(File file);
}
